function date(time: string) {
  let d = new Date()
  let Y = d.getFullYear()
  let M = d.getMonth() + 1
  let D = d.getDate()
  if (M < 10) {
    M = Number('0' + M);
  }
  if (D < 10) {
    D = Number('0' + D)
  }

  return `${Y}.${M}.${D}`
}

export {
  date
}